home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / giochi / giochi4 / hug22ar9.lha / Hugo / Library / grammar.g < prev    next >
Text File  |  1996-11-17  |  14KB  |  377 lines

  1. !----------------------------------------------------------------------------
  2. !
  3. !           HUGO Verb Grammar v2.2.1 by Kent Tessman (c) 1995-1996
  4. !                     for use with Hugo Compiler v2.2
  5. !
  6. !----------------------------------------------------------------------------
  7. !
  8. ! All verb grammar must be defined or included at the start of a game file, 
  9. ! before any objects or executable code.
  10. !
  11. !----------------------------------------------------------------------------
  12.  
  13. #version 2.2
  14.  
  15. !----------------------------------------------------------------------------
  16. ! NON-ACTION VERBS:
  17. !----------------------------------------------------------------------------
  18.  
  19. #ifclear NO_XVERBS
  20.  
  21. xverb "restore", "resume"
  22.     *                                                       DoRestore
  23.     * "game"/"story"                                        DoRestore
  24.  
  25. xverb "save", "suspend"
  26.     *                                                       DoSave
  27.     * "game"/"story"                                        DoSave
  28.  
  29. xverb "script", "transcript"
  30.     *                                                       DoScriptOnOff
  31.     * "on"/"off"                                            DoScriptOnOff
  32.  
  33. #ifclear NO_RECORDING
  34. xverb "record"
  35.     *                                                       DoRecordOnOff
  36.     * "on"/"off"                                            DoRecordOnOff
  37.  
  38. xverb "playback"
  39.     *                                                       DoRecordOnOff
  40. #endif
  41.  
  42. xverb "quit", "q"
  43.     *                                                       DoQuit
  44.     * "game"                                                DoQuit
  45.  
  46. xverb "restart"
  47.     *                                                       DoRestart
  48.     * "game"                                                DoRestart
  49.  
  50. xverb "brief", "normal"
  51.     *                                                       DoBrief
  52.  
  53. xverb "superbrief", "short"
  54.     *                                                       DoSuperBrief
  55.  
  56. xverb "verbose", "long"
  57.     *                                                       DoVerbose
  58.  
  59. xverb "display"
  60.     *                                                       DoDisplay
  61.     * "wide"/"tall"                                         DoDisplay
  62.  
  63. xverb "wide", "tall"
  64.     *                                                       DoDisplay
  65.  
  66. xverb "score"
  67.     *                                                       DoScore
  68.  
  69. xverb "hello", "hi", "howdy"
  70.     *                                                       DoHello
  71.  
  72. #ifclear NO_UNDO
  73. xverb "undo"
  74.     *                                                       DoUndo
  75. #endif
  76.  
  77. #endif  ! ifclear NO_XVERBS
  78.  
  79. !----------------------------------------------------------------------------
  80. ! ACTION VERBS:
  81. !----------------------------------------------------------------------------
  82.  
  83. #ifclear NO_VERBS
  84.  
  85. !
  86. ! For looking and examining:
  87. !
  88.  
  89. verb "look", "l"
  90.     *                                                       DoLookAround
  91.     * "in"/"inside" container                               DoLookIn
  92.     * "on" platform                                         DoLookIn
  93.     * "at" object                                           DoLook
  94.     * "out"/"through" object                                DoLookThrough
  95.     * "under"/"underneath"/"beneath" object                 DoLookUnder
  96.     * "beside"/"behind"/"around" object                     DoLookUnder
  97.     * object                                                DoLook
  98.                                 
  99. verb "examine", "x"
  100.     *                                                       DoVague
  101.     * object                                                DoLook
  102.  
  103.  
  104. !
  105. ! For waiting around:
  106. !
  107.  
  108. verb "wait", "z"
  109.     *                                                       DoWait
  110.     * "for" anything                                        DoWaitforChar
  111.     * "until" number                                        DoWaitUntil
  112.     * "until" "turn" number                                 DoWaitUntil
  113.     * number                                                DoWait
  114.     * number "minutes"/"turns"/"turn"/"minute"              DoWait
  115.     * "for" number "minutes"/"turns"/"turn"/"minute"        DoWait
  116.  
  117.  
  118. !
  119. ! For moving around:
  120. !
  121.  
  122. verb "north", "n", "south", "s", "east", "e", "west", "w",\
  123.     "southeast", "se", "southwest", "sw", "northwest", "nw",\
  124.     "northeast", "ne", "up", "u", "down", "d", "in", "out", \
  125.     "inside", "outside"
  126.     *                                                       DoGo
  127.  
  128. verb "go", "walk"
  129.     * "to"/"in"/"into"/"inside"/"through" object            DoEnter
  130.     * "out" object                                          DoGo
  131.     * "out"/"outside"                                       DoExit
  132.     * object                                                DoGo
  133.  
  134. verb "enter", "board", "mount"
  135.     *                                                       DoVague
  136.     * object                                                DoEnter
  137.                             
  138. verb "exit"
  139.     *                                                       DoExit
  140.     * object                                                DoExit
  141.  
  142. verb "sit", "lie"
  143.     *                                                       DoEnter
  144.     * "down"                                                DoEnter
  145.     * "in"/"on" object                                      DoEnter
  146.     * "down" "in"/"on" object                               DoEnter
  147.  
  148. verb "stand"
  149.     *                                                       DoExit
  150.     * "up"                                                  DoExit
  151.  
  152. verb "dismount"
  153.     *                                                       DoExit
  154.     * object                                                DoExit
  155.  
  156.  
  157. !
  158. ! For moving, taking, and dropping objects:
  159. !
  160.  
  161. verb "move"
  162.     *                                                       DoVague
  163.     * object                                                DoMove
  164.  
  165. verb "get", "grab", "snatch", "fetch"
  166.     *                                                       DoVague
  167.     * "up"/"out"/"off"/"down"                               DoExit
  168.     * "outof"/"offof"/"off" object                          DoExit
  169.     * "in"/"in"/"inside"/"on"                               DoEnter
  170.     * "in"/"into"/"inside"/"on"/"onto" object               DoEnter
  171.     * multinotheld "from"/"off"/"on"/"in" parent            DoGet
  172.     * multinotheld "offof"/"outof" parent                   DoGet
  173.     * multinotheld "from" "offof"/"outof"/"on"/"in" parent  DoGet
  174.     * multinotheld                                          DoGet
  175.  
  176. verb "take"
  177.     *                                                       DoVague
  178.     * multinotheld                                          DoGet
  179.     * "off" multiheld                                       DoTakeOff
  180.     * multiheld "off"                                       DoTakeOff
  181.     * multinotheld "from"/"off"/"on"/"in" parent            DoGet
  182.     * multinotheld "offof"/"outof" parent                   DoGet
  183.     * multinotheld "from" "offof"/"outof"/"on"/"in" parent  DoGet
  184.     * "inventory"                                           DoInventory
  185.  
  186. verb "pick"
  187.     *                                                       DoVague
  188.     * "up" multinotheld                                     DoGet
  189.     * "up" multinotheld "from"/"off" parent                 DoGet
  190.     * "up" multinotheld "offof"/"outof" parent              DoGet
  191.     * multinotheld "up"                                     DoGet
  192.     * multinotheld "up" "from"/"off" parent                 DoGet
  193.     * multinotheld "up" "offof"/"outof" parent              DoGet
  194.     * multinotheld                                          DoGet
  195.  
  196. verb "drop"
  197.     *                                                       DoVague
  198.     * multiheld "on" "ground"/"floor"                       DoPutonGround
  199.     * multiheld "outside" xobject                           DoPutonGround
  200.     * multiheld "in"/"into"/"inside" container              DoPutIn
  201.     * multiheld "on" platform                               DoPutIn
  202.     * multiheld                                             DoDrop
  203.  
  204. verb "leave"
  205.     *                                                       DoExit
  206.     * object                                                DoExit
  207.     * multiheld "on"/"onto" "ground"/"floor"                DoPutonGround
  208.     * multiheld "outside" xobject                           DoPutonGround
  209.     * multiheld "in"/"inside" container                     DoPutIn
  210.     * multiheld "on" platform                               DoPutIn
  211.     * multiheld                                             DoDrop
  212.  
  213. verb "let"
  214.     * "go" multiheld                                        DoDrop
  215.     * multiheld "go"                                        DoDrop
  216.  
  217. verb "put", "place"
  218.     *                                                       DoVague
  219.     * multiheld "on"/"onto" "ground"/"floor"                DoPutonGround
  220.     * multiheld "outside" xobject                           DoPutonGround
  221.     * "down" multiheld                                      DoDrop
  222.     * multiheld "down"                                      DoDrop
  223.     * multiheld "in"/"into"/"inside" container              DoPutIn
  224.     * multiheld "on"/"onto" platform                        DoPutIn
  225.     * multiheld                                             DoDrop
  226.  
  227. verb "put"
  228.     * multiheld "on"                                        DoWear
  229.     * "on" multiheld                                        DoWear
  230.  
  231. verb "insert"
  232.     *                                                       DoVague
  233.     * held                                                  DoPutIn
  234.     * held "in"/"into" object                               DoPutIn
  235.  
  236. verb "empty", "unload"
  237.     *                                                       DoVague
  238.     * container                                             DoEmpty
  239.     * platform                                              DoEmpty
  240.     * container "on"/"onto" "ground"/"floor"                DoEmptyGround
  241.     * platform "on"/"onto" "ground"/"floor"                 DoEmptyGround
  242.  
  243.  
  244. !
  245. ! Other object-handling verbs:
  246. !
  247.  
  248. verb "give", "hand", "offer"
  249.     *                                                       DoVague
  250.     * object                                                DoGive
  251.     * object "to" object                                    DoGive
  252.  
  253. verb "show"
  254.     *                                                       DoVague
  255.     * object                                                DoShow
  256.     * object "to" xobject                                   DoShow
  257.  
  258. verb "inventory", "inv", "i"
  259.     *                                                       DoInventory
  260.     * "wide"/"tall"                                         DoInventory
  261.  
  262. verb "open"
  263.     *                                                       DoVague
  264.     * openable                                              DoOpen
  265.  
  266. verb "lock"
  267.     *                                                       DoVague
  268.     * lockable                                              DoLock
  269.     * lockable "with" held                                  DoLock
  270.  
  271. verb "unlock"
  272.     *                                                       DoVague
  273.     * lockable                                              DoUnlock
  274.     * lockable "with" held                                  DoUnlock
  275.  
  276. verb "close", "shut"
  277.     *                                                       DoVague
  278.     * openable                                              DoClose
  279.  
  280. verb "read", "peruse"
  281.     *                                                       DoVague
  282.     * readable                                              DoLook
  283.  
  284. verb "switch", "turn", "flip"
  285.     *                                                       DoVague
  286.     * switchable "on"                                       DoSwitchOn
  287.     * "on" switchable                                       DoSwitchOn
  288.     * switchable "off"                                      DoSwitchOff
  289.     * "off" switchable                                      DoSwitchOff
  290.  
  291. verb "wear"
  292.     *                                                       DoVague
  293.     * multi                                                 DoWear
  294.  
  295. verb "remove"
  296.     *                                                       DoVague
  297.     * multi                                                 DoTakeOff
  298.     * multi "from"/"outof"/"offof" parent                   DoGet
  299.  
  300. verb "listen"
  301.     *                                                       DoListen
  302.     * "to" object                                           DoListen
  303.  
  304. verb "hear"
  305.     *                                                       DoListen
  306.     * object                                                DoListen
  307.  
  308. verb "eat", "taste", "bite", "chew"
  309.     *                                                       DoVague
  310.     * object                                                DoEat
  311.  
  312. verb "drink", "sip", "swallow"
  313.     *                                                       DoVague
  314.     * object                                                DoDrink
  315.     * "from" object                                         DoDrink
  316.  
  317. verb "hit", "strike", "break", "attack", "whack", "beat", "punch"
  318.     *                                                       DoVague
  319.     * object                                                DoHit
  320.     * object "with" held                                    DoHit
  321.  
  322. verb "kill", "murder", "fight"
  323.     *                                                       DoVague
  324.     * living                                                DoHit
  325.  
  326.  
  327. !
  328. ! For talking to characters:
  329. !
  330.  
  331. verb "ask", "question", "consult"
  332.     *                                                       DoAsk
  333.     * living                                                DoAsk
  334.     * living "about" anything                               DoAsk
  335.     * "about" anything                                      DoAskQuestion
  336.  
  337. verb "talk", "speak"
  338.     *                                                       DoTalk
  339.     * "to" living                                           DoTalk
  340.     * "to" living "about" anything                          DoTalk
  341.     * "about" anything                                      DoAskQuestion
  342.  
  343. verb "tell"
  344.     * "me" "about" anything                                 DoAskQuestion
  345.     * living "about" anything                               DoTell
  346.  
  347. verb "explain"
  348.     * "to" "me" "about" anything                            DoAskQuestion
  349.     * "to" living "about" anything                          DoTell
  350.  
  351. verb "what"
  352.     * "is"/"about" anything                                 DoAskQuestion
  353.  
  354. verb "who"                                             
  355.     * "is" anything                                         DoAskQuestion
  356.  
  357. #endif  ! ifclear NO_VERBS
  358.  
  359. !----------------------------------------------------------------------------
  360. ! Include verb stub grammar if specified
  361.  
  362. #ifset VERBSTUBS
  363. #include "verbstub.g"
  364. #endif
  365.  
  366. !----------------------------------------------------------------------------
  367. ! Include debugging grammar if specified
  368.  
  369. #ifset DEBUG
  370. #include "hugofix.g"
  371. #endif
  372.  
  373. #ifset DEBUG_SMALL
  374. #include "hugofix.g"
  375. #endif
  376.  
  377.